package com.utils;

public class Single {
	
	private static Single single;
	
	private Single(){
		// 整个运行期间，只执行一次的业务代码操作，如：读取配置文件的操作。
	}
	
	public static class SingleHelper{
		private static final Single INSTANCE = new Single();
	}
	
	public static Single getInstance(){
		single = SingleHelper.INSTANCE;
		return single;
	}
	public static Single test(){
		return single;
	}
	
}
